
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 用户头像
  avatar: state => state.user.userInfo.staffPhoto,
  // 登录token
  token: state => state.user.token,
  // 用户名及手机号
  name: state => state.user.userInfo.username,
  mobile: state => state.user.userInfo.mobile,
  // 部门名称
  deptName: state => state.user.userInfo.departmentName
}
export default getters
